﻿<%@ Page Title="" Language="C#" MasterPageFile="~/DefaultStyle.Master" AutoEventWireup="true" CodeBehind="DangSanPham.aspx.cs" Inherits="Dack_Web2.DangSanPham" %>

<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    &nbsp;<script src="Js/jquery-1.8.3.min.js"></script><script src="Js/jquery.MultiFile.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
    <p style="font-weight: bolder; font-size: 25px; font-family: 'Times New Roman', Times, serif; color: #FF0000">
        ► Đăng sản phẩm       
    </p>
    <p>
        &nbsp;
    </p>

    <table style="width: 100%">
        <tr>
            <td style="width: 200px; font-weight: bolder; font-size: 15px;">Tên sản phẩm
            </td>
            <td>
                <asp:TextBox ID="txtTenSanPham" runat="server" Width="283px" CssClass="textbox_s"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtTenSanPham" ErrorMessage="RequiredFieldValidator" ForeColor="Red">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 200px; font-weight: bolder; font-size: 15px;">&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td style="width: 200px; font-weight: bolder; font-size: 15px;">Giá sản phẩm&nbsp;&nbsp;
            </td>
            <td>
                <asp:TextBox ID="txtGia" runat="server" CssClass="textbox_s"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtGia" ErrorMessage="RequiredFieldValidator" ForeColor="Red">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 200px; font-weight: bolder; font-size: 15px; height: 20px;"></td>
            <td style="height: 20px"></td>
        </tr>
        <tr>
            <td style="width: 200px; font-weight: bolder; font-size: 15px;">Loại sản phẩm&nbsp;
            </td>
            <td>
                <asp:DropDownList ID="drLoaiSanPham" runat="server" Width="115px" CssClass="textbox_s" AppendDataBoundItems="True">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td style="width: 200px; font-weight: bolder; font-size: 15px;">&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td style="width: 200px; font-weight: bolder; font-size: 15px;">
                <p align="left">
                    Upload hình
                </p>

            </td>
            <td rowspan="2">

                
                        <asp:Label ID="Label1" runat="server" CssClass="label_s" Text="Các loại file được chọn &quot;*.jpg , *.png, *.gif&quot; tối đa được 3 file" Width="521px"></asp:Label>
                        <br />
                        <br />
                        <asp:FileUpload ID="fileUploadControl" runat="server" class="multi max-3 accept-jpg|gif|png" Width="453px" />
                        <br />
                        <asp:Button ID="btnUpload" runat="server" CssClass="button_s" Height="24px" OnClick="btnUpload_Click" Text="Upload" Width="80px" CausesValidation="False" />
                        <br />
                        <asp:Label ID="lbUploadCmp" runat="server" CssClass="label_s" Width="525px"></asp:Label>

                        <br />
                   
            </td>
        </tr>
        <tr>
            <td style="width: 200px; font-weight: bolder; font-size: 15px;">&nbsp;</td>
        </tr>
        <tr>
            <td style="width: 200px; font-weight: bolder; font-size: 15px;">Hình giới thiệu sản phẩm 
            </td>
            <td>
                <asp:TextBox ID="txtHinhGioiThieu" runat="server" CssClass="textbox_s" Width="488px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtHinhGioiThieu" ErrorMessage="RequiredFieldValidator" ForeColor="Red">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 200px; font-weight: bolder; font-size: 15px;" rowspan="1">
                <br />
                Thông tin chi tiết sản phẩm 
            </td>
            <td rowspan="1">&nbsp;</td>
        </tr>
    </table>

    <div style="width: 770px;">
        <CKEditor:CKEditorControl ID="txtThongTinChiTiet" runat="server" Width="100%" ResizeMinWidth="740"></CKEditor:CKEditorControl>
        <br />
        <asp:Label ID="lbThongBao" runat="server" CssClass="label_s" ForeColor="#333333" Width="767px"></asp:Label>
    </div>

    <div style="width: 333px; float: left; font-weight: bolder; font-size: 15px;" align="right">
        <asp:Button ID="btLuuSP" runat="server" Text="Lưu sản phẩm" CssClass="button_s" OnClick="btLuuSP_Click" />
    </div>
    <div align="center">
        <asp:Button ID="btLuuVaDaDeal" runat="server" Text="Lưu và đăng Deal" CssClass="button_s" />
    </div>
</asp:Content>
